package io.renren.service.impl;

import io.renren.dao.VEmpInfoDao;
import io.renren.entity.VEmpInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.SafetyEducationManagementDao;
import io.renren.entity.SafetyEducationManagementEntity;
import io.renren.service.SafetyEducationManagementService;



@Service("safetyEducationManagementService")
public class SafetyEducationManagementServiceImpl implements SafetyEducationManagementService {
	@Autowired
	private SafetyEducationManagementDao safetyEducationManagementDao;
	@Autowired
	private VEmpInfoDao vEmpInfoDao;
	
	@Override
	public SafetyEducationManagementEntity queryObject(Integer id){
		return safetyEducationManagementDao.queryObject(id);
	}
	
	@Override
	public List<SafetyEducationManagementEntity> queryList(Map<String, Object> map){
		return safetyEducationManagementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return safetyEducationManagementDao.queryTotal(map);
	}
	
	@Override
	public void save(SafetyEducationManagementEntity safetyEducationManagement){
		safetyEducationManagementDao.save(safetyEducationManagement);
	}

	@Override
	public void update(SafetyEducationManagementEntity safetyEducationManagement){
		safetyEducationManagementDao.update(safetyEducationManagement);
	}
	
	@Override
	public void delete(Integer id){
		safetyEducationManagementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		safetyEducationManagementDao.deleteBatch(ids);
	}


	@Override
	public List<VEmpInfoEntity> queryPopList(Map<String, Object> map){
		return vEmpInfoDao.queryList(map);
	}

	@Override
	public int queryPopTotal(Map<String, Object> map){
		return vEmpInfoDao.queryTotal(map);
	}
	
}
